import { createApp } from 'vue'
import App from './App.vue'
import { createRouter,createWebHashHistory } from 'vue-router '
import goods from './pages/goods/goods.vue'
// css 的预编译器 less sass stylus styled-components
// 不用拘泥于 css语法 加快速度
// 变量，嵌套{ } mixin 函数 css更像js 更牛逼
import './common/stylus/index.styl'

const routes = [{
    path:'/',
    component:goods
}]

const router = createRouter({
    history:createWebHashHistory(),
    routes
})


createApp(App)
    .use(router)
    .mount('#app')
